# Description: UNIX icin programlanabilir bir komut arayuzu (shell)
# URL: http://www.zsh.org 
# Packager: milisarge
# Depends on: pcre 

name=zsh
version=5.3.1
release=1
source=(http://www.zsh.org/pub/$name-$version.tar.xz)

build(){
    cd $name-$version
    ./configure --prefix=/usr \
                --bindir=/bin \
                --sysconfdir=/etc/zsh \
                --enable-etcdir=/etc/zsh
    make
    makeinfo Doc/zsh.texi --html -o Doc/html
    makeinfo Doc/zsh.texi --html --no-split --no-headers -o Doc/zsh.html
    makeinfo Doc/zsh.texi --plaintext -o Doc/zsh.txt
    make DESTDIR=$PKG install

    make infodir=$PKG/usr/share/info install.info
    install -v -dm755 $PKG/usr/share/doc/zsh-$version/html
    install -v -m644 Doc/html/* $PKG/usr/share/doc/zsh-$version/html
    install -v -m644 Doc/zsh.{html,txt} $PKG/usr/share/doc/zsh-$version
}



